<template>
	<view>
		<view class="flex justify-between bg-white">
			<view @tap="change('system')" class="choose flex justify-center">
				<text :class="info=='system'?'choose_text':''">系统信息</text>
			</view>
			<view @tap="change('person')" class="choose flex justify-center">
				<text :class="info=='person'?'choose_text':''">个人信息</text>
			</view>
		</view>
		<sys-card v-if="info=='system'"></sys-card>
		<per-card v-else></per-card>
	</view>
</template>

<script>
	import sysCard from '@/components/my-components/systemInfoCard/systemInfoCard.vue'
	import perCard from '@/components/my-components/personCard/personCard.vue'
	export default{
		components:{
			'sys-card':sysCard,
			'per-card':perCard
		},
		data() {
			return {
				info: "system"
			}
		},
		methods:{
			change(choose) {
				if(this.info != choose){
					this.info = choose
				}
			}
		}
		
	}
</script>

<style>
	.choose{
		height: 95rpx;
		line-height: 100rpx;
		text-align: 28rpx;
		color: #101010;
		font-weight: 500;
		flex: 1;
	}
	.choose_text{
		color: #5275AB;
		border-bottom:1rpx solid #5275AB;
	}
</style>
